#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.rest;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;

import ${package}.entity.DAO;
import ${package}.entity.User;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.googlecode.objectify.Key;

@Path("test")
public class TestApi {
	private Logger log=LoggerFactory.getLogger(this.getClass());
	private DAO dao=new DAO();
	@GET
	@Path("method")
	@Produces("text/plain")
	public String test(){
		log.info("Got REST message");
		User user=new User("User name");
		log.info("About to persist user {}",user);
		Key<User> key=dao.ofy().put(user);
		return "User: "+user.getName()+"\nKey: "+key.getId();
	}
}
